﻿@model CampWeek5__Book_Project_.Data.Model.Book
@{
    ViewBag.Title = "BookDetail";
}
<div>
    <a href="/Admin/AdminEditBook/@Model.Id" class="btn btn-warning">Edit</a>  <a href="/Admin/AdminDeleteBook/@Model.Id" class="btn btn-danger">Delete</a>
</div>

<div>
    <h2>@Model.Title</h2><p>
        <i>@Model.Genre</i>
    </p>
</div>

<div class="container">

    <div class="col-md-3">
        <img src="@Model.BookImg" class="img-responsive img-thumbnail dg-bookDetailImage" />
        <h4>@Model.TimesViewed Viewed</h4>
    </div>

    <div class="col-md-9">
        <h3>Author:  <strong><a href="/Admin/AdminAuthorDetail/@Model.Author.Id">@Model.Author.AuthorName</a></strong></h3>
        <p>
            Publication Date: @Model.PubDate.ToString("MM/dd/yyyy")
        </p>
        <p>@Model.Summary</p>
    </div>
    <a href="/Admin/CreateRating" class="btn btn-info">Rate this book!</a>
</div>


